﻿<%@ Page Title="Edit Profile" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditProfile.aspx.cs" Inherits="StudentHookups.Account.Profile.EditProfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="lblViewProfileWelcome" runat="server" Text="Label"><h2>Welcome user here you can update your profile</h2></asp:Label>
    <fieldset class="changeInformation">
        <legend>Required Information</legend><b>Firstname:</b>
        <asp:TextBox ID="tbFirstname" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvFirstname" runat="server" CssClass="failureNotification"
            ErrorMessage="Firstname required" ControlToValidate="tbFirstname" ValidationGroup="updateReqUser">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="revFirstname" CssClass="failureNotification"
            ControlToValidate="tbFirstname" runat="server" ErrorMessage="Not a valid firstname"
            ValidationExpression="^[a-zA-Z''-'\s]{1,40}$" ValidationGroup="updateReqUser">*</asp:RegularExpressionValidator><br />
        <b>Lastname:</b>
        <asp:TextBox ID="tbLastname" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvLastName" CssClass="failureNotification" runat="server"
            ErrorMessage="Lastname required" ControlToValidate="tbLastname" ValidationGroup="updateReqUser">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="revLastname" CssClass="failureNotification" ControlToValidate="tbLastname"
            runat="server" ErrorMessage="Not a valid lastname" ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"
            ValidationGroup="updateReqUser">*</asp:RegularExpressionValidator><br />
        <b>Gender:</b><asp:DropDownList ID="ddlChangeGender" runat="server">
            <asp:ListItem Text="Male"></asp:ListItem>
            <asp:ListItem Text="Female"></asp:ListItem>
        </asp:DropDownList>
        <br />
        <b>Age:</b>
        <asp:DropDownList ID="ddlAge" runat="server">
        </asp:DropDownList>
        <br />
        <asp:Button CssClass="btnSaveProfile" ID="btnSaveProfile" runat="server" Text="Save"
            ValidationGroup="updateReqUser" OnClick="btnSaveProfile_Click" />
        <br />
        <asp:ValidationSummary ID="validateReqInfo" ValidationGroup="updateReqUser" runat="server" />
    </fieldset>
    <fieldset class="changeInformation">
        <legend>Optional Information</legend>
        <p>
            <b>Change profile image:</b></p>
        <asp:FileUpload ID="imgUpload" runat="server" />
        <p>
            <b>Current Image</b></p>
        <asp:Image CssClass="ProfileImage" ID="currImg" runat="server" ImageUrl="~/imgs/anonymous.png"
            AlternateText="Please submit a new image" />
        <p>
            <b>Free text about yourself:</b></p>
        <br />
        <asp:TextBox ID="tbInformation" CssClass="tbInformation" runat="server" TextMode="MultiLine"
            MaxLength="2" Rows="6"></asp:TextBox>
        <asp:RegularExpressionValidator ID="revTbInformation" CssClass="failureNotification"
            ControlToValidate="tbInformation" runat="server" ErrorMessage="Not a valid lastname"
            ValidationExpression="^[\S\s]{0,280}$" ValidationGroup="updateOptUser">*</asp:RegularExpressionValidator>
        <br />
        <asp:Button CssClass="btnSaveProfile" ID="saveOptInfo" runat="server" Text="Save"
            ValidationGroup="updateOptUser" OnClick="saveOptInfo_Click" />
        <asp:ValidationSummary ID="validateOptInfo" ValidationGroup="updateOptUser" runat="server" />
    </fieldset>
</asp:Content>
